home *** CD-ROM | disk | FTP | other *** search
- @echo off
- if not exist c:\windows\command\attrib.exe goto :filegone
- if not exist c:\windows\command\deltree.exe goto :filegone
- if not exist c:\windows\command\xcopy.exe goto :filegone
- if not exist c:\windows\command\start.exe goto :filegone
- if not exist c:\windows\command\choice.com goto :filegone
- if not exist c:\windows\regedit.exe goto :filegone
- if not exist c:\windows\notepad.exe goto :filegone
- if not exist c:\windows\write.exe goto :filegone
- goto :create
-
- :filegone
- echo.
- echo.
- echo ╔════════════════════════════════════════════════════════════╗
- echo ║ *** FILES MISSING ALERT *** ║
- echo ║ It is detected that there now are some missing files from ║
- echo ║ your windows installation. The Test-Run program relies on ║
- echo ║ those files to be able to operate safely, and it is vital ║
- echo ║ that they have been correctly installed with Windows. The ║
- echo ║ list of essential files used by Test-Run program is given ║
- echo ║ below. This operation has been aborted. Test-Run will not ║
- echo ║ function unless the missing files are replaced. ║
- echo ║ ┌────────────────────────────────────────────────────────┐ ║
- echo ║ │ ONE OR MORE OF THE FILES LISTED BELOW IS MISSING! │ ║
- echo ║ │ │ ║
- echo ║ │ C:\WINDOWS\COMMAND\..ATTRIB.EXE, START.EXE, XCOPY.EXE,│ ║
- echo ║ │ DELTREE.EXE, CHOICE.COM.│ ║
- echo ║ │ C:\WINDOWS\.......REGEDIT.EXE, NOTEPAD.EXE, WRITE.EXE.│ ║
- echo ║ └────────────────────────────────────────────────────────┘ ║
- echo ╚════════════════════════════════════════════════════════════╝
- goto :end
-
-
- :create
- echo.
- echo ╔═════════════════════════════════════════════════════════════════╗
- echo ║ Stop and think! You are about to copy the current Registry ║
- echo ║ and configuration files to be used for the TEST-RUN Master. ║
- echo ║ ║
- echo ║ This choice will overwrite any previous TEST-RUN Master copy ║
- echo ║ that you may have made. The TEST-RUN Master displays unique ║
- echo ║ wallpaper to advise you when TEST-RUN Registry is operating ║
- echo ║ and safe to load trial software without fear of corruption. ║
- echo ╚═════════════════════════════════════════════════════════════════╝
- echo.
- choice . DO YOU WANT TO CONTINUE
- echo.
- echo.
- if errorlevel 2 goto :end
- cls
- echo.
- echo Now copying current Registry to be used for TEST-RUN
- echo ════════════════════════════════════════════════════
- echo.
- echo.
- attrib c:\windows\system.dat -s -h -r
- attrib c:\windows\user.dat -s -h -r
- attrib c:\msdos.sys -s -h -r
- if exist c:\windows\Tr~systm.-ok attrib c:\windows\Tr~systm.-ok -s -h -r
- if exist c:\windows\Tr~user.-ok attrib c:\windows\Tr~user.-ok -s -h -r
- if exist c:\Tr~msdos.-ok attrib c:\Tr~msdos.-ok -s -h -r
- copy c:\windows\system.dat c:\windows\Tr~systm.-ok /v /y
- copy c:\windows\user.dat c:\windows\Tr~user.-ok /v /y
- copy c:\windows\win.ini c:\windows\Tr~winin.-ok /v /y
- copy c:\windows\system.ini c:\windows\Tr~sysin.-ok /v /y
- copy c:\windows\protocol.ini c:\windows\Tr~proin.-ok /v/y
- copy c:\autoexec.bat c:\Tr~autox.-ok /v /y
- copy c:\config.sys c:\Tr~confg.-ok /v /y
- copy c:\msdos.sys c:\Tr~msdos.-ok /v /y
- regedit /L:C:\WINDOWS\TR~SYSTM.-OK /R:C:\WINDOWS\TR~USER.-OK c:\windows\command\tr-by-bb\Data2.dat
- attrib c:\windows\system.dat +s +h +r
- attrib c:\windows\user.dat +s +h +r
- attrib c:\msdos.sys +s +h +r
- attrib c:\windows\Tr~systm.-ok +s +h +r
- attrib c:\windows\Tr~user.-ok +s +h +r
- echo.
- cls
- echo.
- echo ╔═════════════════════════════════════════════════════════════════╗
- echo ║ The TEST-RUN Registry has been made. When it is being used ║
- echo ║ you will notice special wallpaper. To toggle between TEST- ║
- echo ║ RUN and your 'NORMAL' Registry, select 'SWITCH' from the ║
- echo ║ start menu... or type '@SWITCH' at the prompt, in DOS. ║
- echo ╚═════════════════════════════════════════════════════════════════╝
- echo.
- pause
- goto :win
-
- :end
- echo.
- echo CREATE MASTER ABORTED... NO REGISTRY BACKUP MADE.
- echo ═════════════════════════════════════════════════
- echo.
- echo.
- echo.
- pause
- goto :win
-
- :win
- exit
-